import store from "@/store"
const userInfo = store.state.user
console.log(userInfo)
function hasBtnPermission(app) {
    app.directive('has', (el, bindings) => {
        // console.log(el, bindings)
        if (!userInfo.buttons.includes(bindings.value)) {
            el.parentNode.removeChild(el)
        }

    })
}

export default hasBtnPermission
